The relationship between family functioning and social media addiction among university students: a moderated mediation model of depressive symptoms and peer support

Background Social media addiction (SMA) is an increasing problem, especially among young adults. Little is known about university students’ SMA and family functioning. This study aimed to explore the mediating effect of depressive symptoms and the moderating effect of peer support in the relationship between family functioning and SMA among young adults. Methods A sample of 1862 Chinese university students completed an online survey including the Bergen Social Media Addiction Scale (BSMAS), Family APGAR, the Patient Health Questionnaire (PHQ-9), peer support, and demographic characteristics. Hierarchical regression and moderated mediation analysis were used to test the effects and pathways among them. Results Of the 1840 participants, 30.11% experienced SMA, 38.80% had family dysfunction and 15.98% had depressive symptoms. Hierarchical multiple regression showed better family functioning significantly predicted less SMA (β = -0.26, p < 0.001) and lower depressive symptoms (β = -0.58, p < 0.001), after adjusting for covariates. Mediation analysis verified that depressive symptoms mediated the effect of family functioning on SMA (indirect effect = -0.22, 95%CI[-0.28, -0.17]). Furthermore, the interaction of family functioning and peer support was negatively related to depressive symptoms (β= -0.03, 95% CI[-0.05, -0.01]) and the interaction of depressive symptoms and peer support was positively related to SMA (β = 0.01, 95%CI[0.004, 0.02]). Additional analysis further confirmed that peer support decreased depressive symptoms among young adults from dysfunctional families, and increased SMA behaviors in individuals with depressive symptoms. Conclusion Better family functioning and lower depressive symptoms may contribute to less social media addiction among Chinese university students. Peer support could moderate the mediating role of depressive symptoms on social media addiction in individuals with family dysfunction. Supplementary Information The online version contains supplementary material available at 10.1186/s40359-024-01818-2.

The relationship between family functioning and social media addiction among university students: a moderated mediation model of depressive symptoms and peer support Introduction Social media, with its great popularity and strong functioning, has become an indispensable aspect of daily life [1].According to the 51st Statistical Report on Internet Development in China [2], 32.9% of Internet users were adolescents and youth under 30 years of age.A national survey among 5118 college students revealed that 99.39% of them use social media and spend more than 4 h on social media daily in China [3].As social media usage increases, it may give rise to negative outcomes [4], such as overreliance and addictive behavior [5] on social media among young adults.
Social media addiction (SMA), defined as prolonged exposure to and repeated use of social media [6], is characterized by a dysfunctional form of being unable to resist the motivation to follow social media, and experiencing distress if prohibited from using social media [7].A meta-analysis of 64 countries demonstrated that the pooled prevalence rate of SMA was 17.42% in the general population [8].In China, 15.2% of university students have SMA [9].Current evidence derived from crosssectional studies and meta-analyses demonstrated that SMA may be related to negative consequences, like poor academic performance [10], sleep disorders [11], worse psychological well-being [12], and so on [13].Therefore, SMA may be a more noteworthy public health concern, and it is vital to explore the risk factors and potential mechanisms of SMA.
Ecological system theory [14] emphasizes that the interaction between individual characteristics and ecological systems (e.g., family and society) shapes the developmental outcomes of individuals.Although ecological system theory and existing studies [15,16] have indicated that the formation of SMA is strongly affected by the structures and interactions of various systems, few studies have examined the interactive effects of family functioning, peer support, and depressive symptoms on SMA among Chinese university students.

Family functioning and SMA
According to the McMaster Family Functioning Model Theory, family functioning refers to providing an appropriate environment and promoting the growth and development of family members, including physical, psychological, social, and other domains [17].Previous studies have suggested that good family functioning involving adaptation, interaction, cohesion, closeness, response, and problem-solving [18] between family members is essential for lowering the likelihood of psychological distress [19] and problematic behavior [20].For example, a longitudinal study involving 3 waves of follow-up in Hong Kong among 3325 junior high school students revealed that good family functioning was related to less SMA [21].Family dysfunction (e.g., poor relationships and intense conflict) was identified to be associated with increased SMA significantly [22].However, another recent longitudinal study among 1344 middle school students found that family functioning was not related to addiction to social media [23].In this afore-mentioned study, SMA was measured by one single item "how much time spent on social media ", which evaluated one aspect of SMA, resulting in oversimplified and controversial findings.Thus, no consensus has been reached regarding the relationship between family functioning and SMA.Furthermore, studies on the relationship between family functioning and SMA have mainly focused on children and adolescents, while few studies have been conducted on university students in China.Therefore, the relationship between family functioning and SMA among Chinese university students needs to be studied further.

Depressive symptoms as a mediator
Depressive symptoms, as the main factor contributing to the worldwide burden of disease, have a prevalence rate of 33.60% among Chinese university students [24].On the one hand, depressive symptoms were reported to be directly related to problematic behaviors, including e-cigarette use [24] and problematic smartphone use [25].A meta-analysis of 50 studies with 27,935 participants concluded that there was a positive correlation between depressive symptoms and SMA [26].Another study involving 8,912 university students from seven countries highlighted that depressive symptoms were positively related to SMA [27].On the other hand, previous research suggested that family functioning was a predictor of depressive symptoms [28].Good family functioning facilitates the fulfillment of individuals' relatedness needs [29] and subsequently enhances physical and mental well-being [30].A birth cohort over 3 decades demonstrated that family conflict played a key role in increasing adolescent depressive symptoms.According to compensatory Internet use theory [31], people may resort to social media as a coping strategy to make up for unsatisfied offline psychological needs and alleviate negative emotions (e.g., depressive symptoms) during challenging real-life situations (e.g., family dysfunction) [32].Overall, considering the above theoretical and empirical evidence, good family functioning may decrease individuals' depressive symptoms and social media addiction.And depressive symptoms were positively related to SMA [33].Therefore, we hypothesized that depressive symptoms may mediate the association between family functioning and SMA.

Peer support as a moderator
Peer support, referring to mutual assistance, empathy exchange, and receiving companionship from peers [34], may improve individuals' psychological state [35] and problematic behavior [36](e.g., SMA [36,37]).Nevertheless, when social media is considered an expansion of social connections to maintain peer relationships and seek peer assistance, peer support may become a trigger for SMA [38].In line with a systematic review, peer support had a positive impact on SMA [39].Thus, the relationship between peer support and SMA should be further explored.
In addition, many studies have shown that peer support plays an important protective role in the associations among life events, mental disorders, and addictive behavior.According to the stress-buffering model, the interaction between positive experience and peer support has the potential to counter the negative effects of stress [40], promote mental health [41], and reduce addictive behavior [42].For instance, a longitudinal study conducted on 1301 middle school students emphasized that peer support may buffer the effect of family functioning on adolescent depressive symptoms [43].However, a recent two-year longitudinal study pointed out that higher levels of peer support exacerbated depressive symptoms in adolescents who experienced family violence [44].Another cross-sectional study conducted on 1258 participants aged 13 to 24 years indicated that better peer support may increase the risk of SMA in individuals suffering from negative emotions [45], indicating that peer support may reinforce the effects of negative events.Based on the afore-mentioned studies, the moderating effect of peer support on the relationships among family functioning, depressive symptoms, and SMA deserves further exploration.

The present study
Taken together, family functioning, depressive symptoms, and peer support may be correlated to SMA, but there are still some controversial results for the possible mechanisms underlying these associations among Chinese university students.Hence, the current study developed a moderated mediation model (see Fig. 1) to elucidate the pathway from family functioning to SMA by analyzing the mediating effect of depressive symptoms and the moderating effect of peer support on this association among Chinese university students.The following hypotheses were formulated: H1 Good family functioning may be negatively associated with SMA among university students in China.
H2 Depressive symptoms may mediate the relationship between family functioning and SMA.
H3 Peer support might function as a moderator of the direct effect (H3c: family functioning-SMA) and/ or indirect effect (H3a: family functioning-depressive symptoms; H3b: depressive symptoms-SMA) of family functioning on SMA.

Procedures and participants
The current study was conducted at Nantong University, a comprehensive school in Jiangsu Province in eastern China, from April to May 2020.We used cluster sampling to randomly select two majors from three major categories (science and technology, liberal arts, and medicine) and then selected five classes from freshmen to seniors and above in each major.12 Counselors from six majors, who provided guidance, counseling, and advocacy services for these young adults at Nantong University, were recruited as investigators and informed about the general aim of the research and the procedure of data collection.A total of 1862 university students completed the questionnaire through an online survey platform "Questionnaire Star" (https://www.wjx.cn).
The inclusion criteria of participants were as follows: (1) full-time university students aged 18 to 25; (2) could use social media daily, including WeChat, Weibo, Facebook, and so on.The exclusion criteria included (1) less than 18 years old; (2) suffering from mental illness; (3) having visual disorders.The respondents were also told the aim of the study and provided informed consent electronically.Participants giving none or partial responses were deleted from the data set, and 1840 valid samples were analyzed, for an effective response of 98.82%.

Predictor variable
Family functioning was measured using the Family Affection Partnership Growth Adaptation Resolve Scale [46], which uses a 3-point Likert scale to score each item from 0 (nearly none) to 2 (almost always).The responses of the five items were summed to generate a total score, with a higher score indicating better family functioning.A total score below 4 reflects a very dysfunctional family, a score between 4 and 6 reflects a moderately dysfunctional family and a score ranging from 7 to 10 reflects a well-functioning family [47].The internal consistency dependability of this study was high with a Cronbach's alpha coefficient of 0.903.

Mediating variable
The severity of depressive symptoms was examined using the Patient Health Questionnaire (PHQ-9) [48], which measures the extent of depressive symptoms on a 4-point Likert scale ranging from 0 (not at all) to 3 (more than a week).The sum of the scores ranged from 0 to 27, and individuals who scored ≥ 10 points were classified as suffering from depressive symptoms [49].The Cronbach's alpha coefficient obtained was 0.929.

Moderating variable
Peer support was evaluated using six items from the Healthy Lifestyle Scale for University Students (HLSUS) [50], which is a self-administered instrument that consists of 8 dimensions, and each item was evaluated using a 5-point Likert scale ranging from 1 to 5, with a higher total score signifying a higher level of peer support.The Cronbach's alpha coefficient was 0.924.

Dependent variable
The SMA was evaluated by the Bergen Social Media Addiction Scale (BSMAS) [51], which measures salience, emotion regulation, tolerance, withdrawal, conflict, and relapse, with scores ranging from 1 to 5. The cumulative score is determined by summing the scores of the six items, spanning a range of 6 to 30.Individuals with a score of 19 or higher [52] were considered to have SMA.The Bergen Social Media Addiction Scale has been widely applied in Chinese university students and has great psychometric properties with high internal consistency (Cronbach's α = 0.85), criterion, and construct validity [53].The Cronbach's alpha in the current study was 0.889.

Covariates
Covariates including age [54], gender [55], grade [56], and major [57] were obtained from participants and included in the analysis, as these variables were identified to be related to SMA in the previous studies.Gender is a dummy variable that equals 1 for males and 2 for females.The grade level was a categorical variable: 1 = freshmen, 2 = sophomores, 3 = juniors, and 4 = seniors and above.Major is a dummy variable: 1 for medical majors, including public health and preventive medicine, and clinical medicine, and 2 for other majors.

Statistical analyses
All the statistical analyses were carried out using SPSS 27.0 and PROCESS macro.First, descriptive analyses were performed to characterize the sample (see Table 1).Second, partial correlation analysis was performed to test how these variables were related after adjusting for control variables (see Table 2).Third, hierarchical multiple regressions were utilized to examine the mediating impact of depressive symptoms (Table 3).Model 1 tested the connection between family functioning (X) and SMA (Y) (H1).Model 2 tested the connection between family functioning (X) and depressive symptoms (M) (H2).Model 3 examined the direct effect of family functioning (X) and depressive symptoms (M) on the SMA (Y).Model 1 and Model 3 provided direct and indirect paths among these variables (see Table 3).Furthermore, Model 4 of the PROCESS was used to analyze the mediating effect of depressive symptoms (see Table 4) on the relationship between family functioning (X) and SMA (Y).Model 59 of the PROCESS was utilized to examine the moderating effects of peer support (see Table 5; Fig. 2) between family functioning (X) and SMA (Y).Model 4a examined the direct moderating effect of peer support on the relationship between family functioning (X) and SMA (Y).Model 4b examined the indirect moderating effect of peer support on the relationship between family functioning (X) and the SMA (Y) via depressive symptoms (M).Basic slope tests were performed to determine the moderating effects of peer support (see Fig. 3).The PROCESS macro provided 95% confidence intervals (CIs) for the Model 59 effect based on 5000 bootstrapped samples.When the 95% CI of the interaction did not contain zero, a significant moderated mediation effect could be established with certainty.

Common method bias
Common method bias (CMB) could exist when the data are obtained via self-reports.Therefore, the procedure was arranged carefully, and the respondents completed the questionnaire anonymously.Harman's single-factor test was applied to avoid CMB.The analysis revealed that there were 22 factors with Eigenvalues above 1.The first component explained 14.22% of the variance, which was below the required threshold of 40% [58], indicating that there was no substantial evidence of CMB.

Participant characteristics
The descriptive statistics for the variables are displayed in Table 1.Among the 1840 participants, the average age was 20.88 years.There were 535 males (29.08%) and 706 medical students (38.37%) (see Table 1

Correlation analysis of family functioning, depressive symptoms, peer support, and SMA
Partial correlation analysis was conducted for family functioning, depressive symptoms, peer support, and SMA (see Table 2), and demographic factors, including age, gender, grade, and major, were included as control variables.Good family functioning was negatively correlated with depressive symptoms (r =-0.27, p < 0.001) and SMA (r = -0.12,p < 0.001).Depressive symptoms were positively correlated with SMA (r = 0.40, p < 0.001).Peer support had a positive correlation with family functioning (r = 0.36, p < 0.001) and a negative correlation with depressive symptoms (r = -0.16,p < 0.001).

Depressive symptoms as a mediator
Hierarchical multiple regressions were utilized to examine whether depressive symptoms acted as a mediator in the relationship between family functioning and SMA, and the results are shown in ).However, the direct effect of family functioning on SMA was not significant (see Model 3), suggesting that depressive symptoms may fully mediate this relationship.Moreover, Model 4 of the PROCESS macro confirmed that the mediating effect was significant (indirect effect = -0.22,95%CI [-0.28, -0.17]), suggesting that depressive symptoms mediated this connection (see Table 4), and Hypothesis 2 was confirmed.

Peer support as a moderator
The results of the moderated mediation regression analysis are displayed in Table 5; Fig. 2. Model 4a showed that the interaction between family functioning and peer support was negatively related to depressive symptoms (β= -0.03, 95% CI [-0.05,-0.01]),indicating that peer support may attenuate the relationship between family functioning and depressive symptoms, supporting Hypothesis 3a.Model 4b showed that the interaction effect of depressive symptoms and peer support was positively related to SMA(β = 0.01, 95%CI[0.004,0.02]), indicating that peer support exacerbated the positive effect of depressive symptoms on SMA, supporting Hypothesis 3b.Furthermore, the interaction of family functioning and peer support failed to predict SMA (β = 0.01, 95%CI[-0.01,0.03]), suggesting that peer support did not play a moderating role in the direct relationship between family functioning and SMA, and Hypothesis 3c was rejected.Finally, simple slope tests were carried out to indirectly determine the moderating effects of peer support on the relationship between family functioning and SMA. Figure 3a showed the conditional direct effects of family functioning (X) on depressive symptoms (M) at different moderator levels, where there was a stronger effect for individuals with higher levels of peer support than for those with lower levels of peer support.It can be inferred from the plots that, with a higher level of peer support and better family functioning, there was an attenuating effect on depressive symptoms.Furthermore, as illustrated in Fig. 3b, there was a stronger effect in the higher level of peer support than the lower-level peer support, and it can be inferred that with a higher level of peer support and more severe depressive symptoms, there was an enhanced effect on SMA.

Additional analysis
To verify our findings for the moderating effect of peer support, we conducted two regression tests by splitting the sample.First, to test the moderating effect of peer support on the relationship between family functioning and depressive symptoms, we divided the sample into two subsamples using the cutoff score of PHQ-9 [49] to categorize the participants into two groups, including depressive symptoms and non-depressive symptoms groups.The result showed that the relationship between peer support and depressive symptoms was not significant for university students with good family functioning  (β= -0.032, p > 0.05), but was significantly negative for those with dysfunctional family functioning (β= -0.138, p < 0.001), indicating that peer support could decrease depressive symptoms among university students from dysfunctional families and verifying Hypothesis 3a.Similarly, we divided the sample into two subsamples using the BSMAS cutoff score [52]to categorize the two groups by testing the moderating role of peer support on the relationship between depressive symptoms and SMA.The results showed that the relationship between peer support and SMA was significantly positive (β = 0.274, p < 0.001) for university students with depressive symptoms but was not significant for university students without depressive symptoms (β= -0.038, p > 0.05).To sum up, the results are consistent with those of our main analysis, indicating that peer support could increase SMA among university students with depressive symptoms and verifying Hypothesis 3b.The results from additional regression tests are presented in Supplementary Tables 1 and  Table 2.

Discussion
The main contribution of our study was to explore how depressive symptoms and peer support influence the relationship between family functioning and social media addiction among Chinese university students.According to the conceptual model, our study employed a moderated mediation analysis to reveal three findings.First, good family functioning was significantly related to lower social media addiction.Second, depressive symptoms may function as a mediator in the relationship between family functioning and SMA.Third, the indirect effect of the mediation model was moderated by peer support, as peer support decreased depressive symptoms when family functioning was lower and aggravated social media addiction when university students suffered from depressive symptoms.The results help to elucidate the risk factors and underlying mechanisms of SMA among Chinese university students and provide valuable insight into how family functioning and peer support protect against depressive symptoms and SMA.

Family functioning and SMA
Our study has confirmed that university students with good family functioning are less likely to suffer from SMA, which aligns with existing studies that have demonstrated the relationship between family functioning and individual development [59].Additionally, the current findings provided empirical support for the McMaster Family Functioning Model Theory [17] and highlighted the effect of better family functioning on the psychological and behavioral performance of Chinese university students.Good family functioning, including adequate affective communication, may give individuals a vent for negative emotions and prevent them from oversharing or becoming overly dependent on social media [60].Furthermore, high propinquity interaction between family members, for instance, effective in-person communication, is likely to convey affection and foster family closeness [61], which then contributes to less SMA [23].Consequently, the criticality of good family functioning in the advancement of university students is brought to light.

The mediating role of depressive symptoms
Our study also highlighted the mediation effect of depressive symptoms on the relationship between family functioning and SMA.This finding provided evidence for understanding the potential mechanisms underlying the relationship between good family functioning and problematic behavior, which is consistent with prior findings [62].Better family functioning could be beneficial to superior psychological states and behavioral outcomes [63].In addition, our findings revealed that depressive symptoms have a positive impact on SMA, in line with studies showing that university students with depressive symptoms are more vulnerable to having SMA [64], supporting the model of compensatory internet use [31].As such, those who find it difficult to receive comfort from family members are susceptible to suffering from depressive symptoms and may seek insufficient care via social media as a kind of compensation [65].This study is one of the first to employ such a theory within the family realm by revealing that university students with good family functioning may be conducive to optimizing psychological conditions and improving undesirable behavior.

The moderating effects of peer support
The most important findings were that peer support had moderated effects on the relationships between family functioning and SMA through depressive symptoms.
On the one hand, peer support could alleviate the relationship between family functioning and depressive symptoms, which was consistent with previous findings that peer support was protective for mental health, especially for individuals lacking support from family members [66].Our findings highlighted the primary effect model of social support, which posited that peer support may foster the cultivation of favorable psychological attributes and beneficial behavioral patterns [67].One potential explanation might be that the unfulfilled emotional requirements from the family environment could be slightly compensated for by the relatively higher levels of peer support.Greater family functioning along with a greater level of peer support might enhance the acceptance and understanding of individuals, thus buffering pressure, and improving psychological conditions [68].Therefore, this study sheds light on the protective role of peer support in relieving negative emotions when familyrelated factors are at extremely low levels for Chinese university students.
Furthermore, peer support may increase the likelihood of SMA for university students with depressive symptoms, in line with recent findings [45].According to the compensatory satisfaction theory, appropriate and effective communication is necessary to achieve adequate and timely psychological satisfaction [69].Owing to the benefits of broadening social networks and furnishing individuals with a platform that enables convenient sharing and communication via social media [70], university students may interact with others online.Consequently, university students who are experiencing depressive symptoms could seek interpersonal interactions by accessing social media, thereby alleviating negative emotions, and attaining satisfaction [71], making them prone to further overindulge in social media and then being addicted to social media.

Limitations
The limitations of the current study should also be acknowledged.We employed a cross-sectional methodology to discover the relationships between family functioning, peer support, depressive symptoms, and SMA.Although a moderated mediation analysis can predict this association, we could not determine causality.A longitudinal design should be adopted to explore the effect of family functioning on SMA over time in the future.Second, the scope of our study was constrained due to its exclusive execution at Nantong University.In the future, studies should enlarge the sample size and increase the scope of coverage.Third, the survey was based on selfreports.To enhance the accuracy of the results, future research should incorporate unbiased metrics, such as interviews, to obtain objective measures.
This research puts forward several propositions for future studies.First, to verify and examine our model, future studies can explore specific social media addiction (e.g., Facebook [72], YouTube [73]) in our proposed model; In addition, the relationships between family functioning, peer support, depressive symptoms and other types of Internet addiction may also be explored, including gaming and mobile phone addiction; Finally, different types of internet addiction can be assessed using a psychometric sound instrument (e.g., Assessment of Criteria for Specific Internet Use Disorders (ACSID 11) [74].

Implications
The current study presents a comprehensive framework to clarify the connections between family factors, peer support, psychological factors, and behavioral outcomes.This provides implications for how family functioning and SMA influence depressive symptoms and SMA both theoretically and empirically.Therefore, parents should be more concerned about psychological well-being and problematic behavior by maintaining open lines of communication and exchanging with steady emotional attachment.University staffs should be aware of students' mental health status and intervene in peer relationships, such as by launching a psychological counseling platform, regularly assessing mental health, and organizing interactive activities.

Conclusion
To sum up, this study made contributions to the existing research by pinpointing the mediating and moderating factors that establish a connection between family functioning to SMA among Chinese university students.Overall, good family functioning could be related to better mental health and decreased SMA.In addition, a greater level of peer support could decrease individuals' depressive symptoms when their family functioning is lower and peer support may increase their SMA behaviors with depressive symptoms among Chinese university students.Improving the psychological states and behavioral development of Chinese university students could be prioritized to emphasize the importance of enhancing family functioning and cultivating positive peer support properly.

Fig. 3
Fig. 3 (a) The moderating effect of peer support on the relationship between family functioning and depressive symptoms.(b)The moderating effect of peer support on the relationship between depressive symptoms and social media addiction.Note N=1840.The variables of age, gender, grade, and major were controlled.

Fig. 2
Fig. 2 Moderated Mediation effect model.Note N = 1840.The variables of age, gender, grade, and major were controlled a, b, c, and c' are regression coefficients.c = total effect of family functioning on SMA; c' = direct effect of family functioning on SMA.* p < 0.05, ** p < 0.01, *** p < 0.001

Table 1
Basic characteristics of university students (n = 1840)

Table 2
Partial correlations among predictor, mediator, moderator, and dependent variablesNote The variables of age, gender, grade, and major were controlled.

Table 3
Mediation models of family functioning on social media addiction through depressive symptoms * NoteN = 1840; The variables of age, gender, grade, and major were controlled.95% CI = Bootstrap confidence intervals with lower and upper limits.* p < 0.05, ** p < 0.01, *** p < 0.001

Table 4
Bootstrap test of the mediating effects of depressive symptoms NoteN = 1840.The variables of age, gender, grade, and major were controlled.LLCI represents a lower level of the confidence interval, and ULCI represents the upper level of the confidence interval

Table 5
Moderated mediation regressions of family functioning, peer support, depressive symptoms, and social media addiction Note N = 1840.The variables of age, gender, grade, and major were controlled.Abbreviation: LLCI: a lower level